Xiaomi Mi 4c (xiaomi-libra)

From postmarketOS Wiki
Xiaomi Mi 4c
Mi 4c running weston
Mi 4c running weston
Manufacturer Xiaomi
Name Mi 4c
Codename xiaomi-libra
Released 2015
Type handset
Hardware
Chipset Qualcomm Snapdragon 808 (MSM8992)
CPU 4x1.4 GHz Cortex-A53 & 2x1.8 GHz Cortex-A57
GPU Adreno 418
Display 1080x1920 IPS
Storage 16/32 GB
Memory 2/3 GB
Architecture aarch64
Software
Original software Android (MIUI)
Original version 5.1.1
postmarketOS
Category testing
Pre-built images no
Mainline partial
postmarketOS kernel 3.10.107
Unixbench Whet/Dhry score 1926.2
Features
Flashing
Works
USB Networking
Works
Internal storage
SD card
Battery
Works
Screen
Works
Touchscreen
Works
Multimedia
3D Acceleration
Audio
Camera
Camera Flash
Connectivity
WiFi
Works
Bluetooth
GPS
NFC
Modem
Calls
SMS
Mobile data
Miscellaneous
FDE
USB OTG
HDMI/DP
Sensors
Accelerometer
Magnetometer
Ambient Light
Proximity
Hall Effect
Haptics
Barometer


Mi 4c running gnome 3

Contributors

  • aostanin

Maintainer(s)

Users owning this device

  • Hastalavista (Notes: PMOS edge w/ downstream kernel, broken touchscreen, WiFi not working, wonky PMIC)
  • Netman (Notes: No battery)
  • Russanandres (Notes: MIUI v8)


Issues

  • (Gnome) Password request dialog covers OnBoard input
Demo of issue with Onboard

How to enter flash mode

Recovery mode

  • Turn the device off (or restart also works)
  • Hold Volume Up and Power button
  • Once you feel vibration and phone turns on, release Power button
  • Keep holding Volume Up until you get to recovery.

Flashing (Download, Fastboot) mode

  • Same as recovery, but this time hold the Volume Down and Power keys.

Installation

  • Install pmbootstrap first on your PC
  • zap & reinit pmbootstrap (pmbootstrap -y zap ; pmbootstrap init), choose xiaomi-ferrari as a device
  • proceed with installation as usual: reboot device to fastboot mode, then:
pmbootstrap install
pmbootstrap flasher flash_kernel
pmbootstrap flasher flash_rootfs

Mainline kernel

There is a close-to-mainline kernel fork featuring USB, screen via simplefb and basic core bringup. Find it here.


See also